/**
 * Created by wanghongxiang on 2018/5/21.
 */
import { high } from 'nc-lightapp-front';

const { Refer } = high;

export default function (props = {}) {
    var conf = { multiLang: { domainName: 'hrhi', currentLocale: 'zh-CN',  moduleId: 'refer6007'},
        refType: 'gridTree',
        refName: 'hi6007-000009',/* 国际化处理： 人员*/
        placeholder: 'hi6007-000009',/* 国际化处理： 人员*/
        refCode: 'hrhi.refer.PsnjobAOSTreeGridRef',
        queryTreeUrl: '/nccloud/hrhi/ref/AdminOrgTreeRef.do',
        queryGridUrl: '/nccloud/hrhi/ref/PsnJobAdminGridRef.do',
        rootNode: { refname: 'hi6007-000010', refpk: 'root' ,isleaf: false},/* 国际化处理： 组织部门*/
        columnConfig: [{
            name: [ 'hi6007-000017' , 'hi6007-000005','hi6007-000004','hi6007-000006','hi6007-000007','hi6007-000008','hi6007-000016'],/* 国际化处理： 员工号,姓名,人员编码,组织,部门,岗位,是否主职*/
            code: [ 'refcode', 'refname' ,'bd_psndoc.code','org_orgs.name','org_dept.name','om_post.postname','ismainjob']
        }],
        isMultiSelectedEnabled: false,
    };

    return <Refer {...Object.assign(conf, props)} />
}
